import { createRouter, createWebHashHistory } from 'vue-router'
import Login from "../views/Login.vue"
/* 管理员端 */
import Adm from "../views/adm/Adm.vue"
	import AdmStuAdd from "../views/adm/stu/Add.vue"
	import AdmStuShow from "../views/adm/stu/Show.vue"
	import AdmTeaAdd from "../views/adm/tea/Add.vue"
	import AdmTeaShow from "../views/adm/tea/Show.vue"
	import Clz from "../views/adm/Clz.vue"
	import Counter from "../views/adm/Course.vue"
	import Head from "../views/adm/Head.vue"
	import Task from "../views/adm/Task.vue"
	/* 学生端 */
import StuMarin from "../views/stu/Main.vue"
	import StuCourse from "../views/stu/Course.vue"
	import StuHead from "../views/stu/Head.vue"
	import StuMark from "../views/stu/Mark.vue"
	import StuPwd from "../views/stu/Pwd.vue"
	/* 老师端 */
import TeaMarin from "../views/tea/Marin.vue"
	import TeaHead from "../views/tea/Head.vue"
	import TeaMark from "../views/tea/GoMark.vue"
	import TeaDoMark from "../views/tea/DoMark.vue"
	import TeaPwd from "../views/tea/pwd.vue"

const routes=[
	{
		path:"/login",
		component:Login
	},
	{
		path:"/adm",
		component:Adm,
		children:[
			{
			path:"stuadd",
			component:AdmStuAdd
		},
		{
			path:"stushow",
			component:AdmStuShow
		},
		{
			path:"teaadd",
			component:AdmTeaAdd
		},
		{
			path:"teashow",
			component:AdmTeaShow
		},
		{
		path:"clz",
		component:Clz
	},
	{
		path:"course",
		component:Counter
	},
	{
		path:"task",
		component:Task
	},
	{
		path:"head",
		component:Head
	}
		]	
	},
	{
		path:"/stu",
		component:StuMarin,
		children:[
			{
				path:"course",
				component:StuCourse
			},
			{
				path:"head",
				component:StuHead
			},
			{
			path:"mark",
			component:StuMark
			},
			{
				path:"pwd",
				component:StuPwd
			}
		]
	},
	{
		path:"/tea",
		component:TeaMarin,
		children:[
			{
				path:"head",
				component:TeaHead
			},
			{
				path:"pwd",
				component:TeaPwd
			},
			{
				path:"mark",
				component:TeaMark
			},
			{
				path:"domark",
				component:TeaDoMark
			}
		]
	}
	
]
//注册路由表 
const router =createRouter({
	history:createWebHashHistory(import.meta.env.BASE_URL),
	routes
})
// exposrt 暴露出来
export default router




